<script>
	class Foo {
		foo = $state(0)
	}
	function bar() {
		const a = new Foo();
	}
</script>
